package com.github.niefy.modules.third.dto.in;

import com.github.niefy.common.utils.Json;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class ThirdUserIn_001 {

    private String code;
    private String message;
    private String requestid;
    private String success;
    /**
     * 验证标识，0 未成功，1 成功
     */
    private String verifyflag;
    /**
     * 用户基本信息
     */
    private userinfo userinfo;

    @Data
    public class userinfo{
        private String userid;
        private String consuserid;
        private String username;
        private String roleid;
        private String rolename;
        private String departno;
        private String departname;
    }

    /**
     * 字段verifyflag枚举
     */
    public enum VerifyFlag{
        SUCCESS("1"),
        FAIL("0");

        String value;

        VerifyFlag(String value) {
            this.value = value;
        }

        public String getValue() {
            return this.value;
        }
    }
    @Override
    public String toString() {
        return Json.toJsonString(this);
    }
}
